package com.zjt.service.user;

import com.zjt.entity.Record;
import com.zjt.web.api.vo.base.PageVO;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: xueyanbeijing
 * Date: 12-8-25
 * Time: AM6:08
 * 扫描历史记录
 * To change this template use File | Settings | File Templates.
 */
public interface IRecordService {
    /**
     * 分页取扫描记录，通过type
     * @param userId
     * @param codeType
     * @param pageVO
     * @return
     */
    List<Record> getRecordListByCodeType(long userId,String codeType,PageVO pageVO);

    /**
     * 分页扫描记录，通过userid
     * @param userId
     * @param pageVO
     * @return
     */
    List<Record> getRecordListByUserId(long userId,PageVO pageVO);

    /**
     * 根据产品名称读取扫描记录
     * @param userId
     * @param productName
     * @return
     */
    List<Record> getRecordListByProductName(long userId,String productName);

    /**
     * 保存扫描记录
     * @param userId
     * @param codeType
     * @param codeValue
     * @param goodsReal
     * @return
     */
    Record saveRecord(long userId,String codeType,String codeValue,Integer goodsReal);

    /**
     * 根据主键ID取实体记录
     * @param recordId
     * @return
     */
    Record getRecordById(long recordId);

}
